package com.example.takeaway.converter;

import com.example.takeaway.model.bo.DeliveryAddress;
import com.example.takeaway.model.dto.AddressDTO;
import com.example.takeaway.model.dto.AddressEditorDTO;
import com.example.takeaway.model.vo.AddressVO;
import org.mapstruct.Mapper;

/**
 * @author 邢晨旭
 * {@code @date} 2023/10/22
 */
@Mapper(componentModel = "spring")
public interface AddressConverter {

    AddressVO toAddressVO(DeliveryAddress bo);
    DeliveryAddress toDeliveryAddress(AddressDTO dto);

    DeliveryAddress toDeliveryAddress(AddressEditorDTO dto);

}
